#@layout("服务监控")

#define main()
<body class="timo-layout-page">

    <div class="layui-row layui-col-space15">
        <div class="layui-col-md8">
        	<div class="layui-row layui-col-space15">
        		<div class="layui-col-md6">
        			<div class="layui-card">
		                <div class="layui-card-header">CPU</div>
		                <div class="layui-card-body">
		                    <table class="layui-table" lay-even="" lay-skin="nob">
						      <colgroup>
						        <col>
						        <col>
						      </colgroup>
						      <thead>
						        <tr>
						          <th>属性</th>
						          <th>值</th>
						        </tr> 
						      </thead>
						      <tbody>
						        <tr>
						          <td>核心数</td>
						          <td>#(server.cpu.cpuNum)</td>
						        </tr>
						        <tr>
						          <td>用户使用率</td>
						          <td>#(server.cpu.used)%</td>
						        </tr>
						        <tr>
						          <td>系统使用率</td>
						          <td>#(server.cpu.used)%</td>
						        </tr>
						        <tr>
						          <td>当前空闲率</td>
						          <td>#(server.cpu.free)%</td>
						        </tr>
						      </tbody>
						    </table>
		                </div>
		            </div>
        		</div>
        		<div class="layui-col-md6">
        			<div class="layui-card">
		                <div class="layui-card-header">内存</div>
		                <div class="layui-card-body">
		                    <table class="layui-table" lay-even="" lay-skin="nob">
						      <colgroup>
						        <col>
						        <col>
						        <col>
						      </colgroup>
						      <thead>
						        <tr>
						          <th>属性</th>
						          <th>值</th>
						          <th>JVM</th>
						        </tr> 
						      </thead>
						      <tbody>
						        <tr>
						          <td>总内存</td>
						          <td>#(server.mem.total)G</td>
						          <td>#(server.jvm.total)M</td>
						        </tr>
						        <tr>
						          <td>已用内存</td>
						          <td>#(server.mem.used)G</td>
						          <td>#(server.jvm.used)M</td>
						        </tr>
						        <tr>
						          <td>剩余内存</td>
						          <td>#(server.mem.free)G</td>
						          <td>#(server.jvm.free)M</td>
						        </tr>
						        <tr>
						          <td>使用率</td>
						          <td>#(server.mem.usage)%</td>
						          <td>#(server.jvm.usage)%</td>
						        </tr>
						      </tbody>
						    </table>
		                </div>
		            </div>
        		</div>
        		<div class="layui-col-md12" >
        			<div class="layui-card">
		                <div class="layui-card-header">服务器信息</div>
		                <div class="layui-card-body">
		                    <table class="layui-table" lay-even="" lay-skin="nob">
						      <colgroup>
						        <col>
						        <col>
						        <col>
						        <col>
						      </colgroup>
						      <thead>
						        <tr>
						          <th>服务器名称</th>
						          <th>#(server.sys.computerName)</th>
						          <td>服务器IP</td>
						          <td>#(server.sys.computerIp)</td>
						        </tr> 
						      </thead>
						      <tbody>
						        <tr>
						          <td>操作系统</td>
						          <td>#(server.sys.osName)</td>
						          <td>系统架构</td>
						          <td>#(server.sys.osArch)</td>
						        </tr>
						      </tbody>
						    </table>
		                </div>
		            </div>
        		</div>
        		<div class="layui-col-md12" >
        			<div class="layui-card">
		                <div class="layui-card-header">磁盘状态</div>
		                <div class="layui-card-body">
		                    <table class="layui-table" lay-even="" lay-skin="nob">
						      <colgroup>
						        <col>
						        <col>
						        <col>
						        <col>
						        <col>
						        <col>
						        <col>
						      </colgroup>
						      <thead>
						        <tr>
						          <th>盘符路径</th>
						          <th>文件系统</th>
						          <th>盘符类型</th>
						          <th>总大小</th>
						          <th>可用大小</th>
						          <th>已用大小</th>
						          <th>已用百分比</th>
						        </tr> 
						      </thead>
						      <tbody>
						      	#for(item : server.sysFiles)
							        <tr>
							          <td>#(item.dirName)</td>
							          <td>#(item.typeName)</td>
							          <td>#(item.sysTypeName)</td>
							          <td>#(item.total)</td>
							          <td>#(item.free)</td>
							          <td>#(item.used)</td>
							          <td>#(item.usage)%</td>
							        </tr>
						      	#end
						      </tbody>
						    </table>
		                </div>
		            </div>
        		</div>
        	</div>
        </div>
        
        <div class="layui-col-md4">
        	<div class="layui-card">
                <div class="layui-card-header">Java虚拟机信息</div>
                <div class="layui-card-body">
                    <table class="layui-table" lay-even="" lay-skin="nob">
				      <colgroup>
				        <col>
				        <col>
				        <col>
				      </colgroup>
				      <thead>
				        <tr>
				          <th>Java名称</th>
				          <th>#(server.jvm.name)</th>
				        </tr> 
				      </thead>
				      <tbody>
				        <tr>
				          <td>Java版本</td>
				          <td>#(server.jvm.version)</td>
				        </tr>
				        <tr>
				          <td>安装路径</td>
				          <td>#(server.jvm.home)</td>
				        </tr>
				        <tr>
				          <td>项目路径</td>
				          <td>#(server.sys.userDir)</td>
				        </tr>
				        <tr>
				          <td>启动时间</td>
				          <td>#(server.jvm.startTime)</td>
				        </tr>
				        <tr>
				          <td>运行时长</td>
				          <td>#(server.jvm.runTime)</td>
				        </tr>
				      </tbody>
				    </table>
                </div>
            </div>
        </div>
        
    </div>
    
</body>
#end